package com.songpeng.provider.demo.controller;

import com.songpeng.provider.demo.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BusinessController {

    @Autowired
    private BusinessService businessService;

    @GetMapping(value = "/consumer/order")
    public void test() {
        System.out.println("/consumer/order test start。。。。。。。。。。。。。。。。");
        businessService.purchase( "00047739", "001", 10 );
        System.out.println("/consumer/order test end。。。。。。。。。。。。。。。。。");
    }

}
